projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdead4b
)
imx: ventana: skip mtdparts fixup if no flash
author
Tim Harvey
<
[email protected]
>
Tue, 26 May 2015 18:04:58 +0000
(11:04 -0700)
committer
Stefano Babic
<
[email protected]
>
Mon, 1 Jun 2015 07:48:23 +0000
(09:48 +0200)
This avoids an error message on NAND-less boards.
Signed-off-by: Tim Harvey <
[email protected]
>
board/gateworks/gw_ventana/gw_ventana.c
patch
|
blob
|
history
diff --git
a/board/gateworks/gw_ventana/gw_ventana.c
b/board/gateworks/gw_ventana/gw_ventana.c
index 221069f810a62a20adc1d88ac5c191dadbdaedff..3b7c82b1dc125fe9c88f7f3921724562a7b1e9bd 100644
(file)
--- a/
board/gateworks/gw_ventana/gw_ventana.c
+++ b/
board/gateworks/gw_ventana/gw_ventana.c
@@
-811,9
+811,11
@@
int ft_board_setup(void *blob, bd_t *bd)
return 0;
}
- /* Update partition nodes using info from mtdparts env var */
- puts(" Updating MTD partitions...\n");
- fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
+ if (test_bit(EECONFIG_NAND, info->config)) {
+ /* Update partition nodes using info from mtdparts env var */
+ puts(" Updating MTD partitions...\n");
+ fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
+ }
/* Update display timings from display env var */
if (display) {